// 成绩管理模拟数据
export const mockScoreList = [
    {
      member_id: 1,
      name: '张三',
      test_name: '2025年春季测试',
      score: 88
    },
    {
      member_id: 2,
      name: '李四',
      test_name: '2025年春季测试',
      score: 92
    },
    {
      member_id: 3,
      name: '王五',
      test_name: '2025年春季测试',
      score: 75
    },
    {
      member_id: 1,
      name: '张三',
      test_name: '2025年夏季测试',
      score: 90
    }
  ]

  //   模拟“按测试名查询”
  export function getScoresByTest(testName) {
    return mockScoreList
      .filter(item => item.test_name === testName)
      .sort((a, b) => b.score - a.score)
  }
  
  